package cn.darkhorse.workflow.core;

import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 添加代办事项的操作结果
 * @author yuanjun
 * @since 2021/7/20 14:07
 */
@Data
@Accessors(chain = true)
public class AgencyResult {
    /**
     * 操作是否成功
     */
    Boolean success;
    /**
     * 代办名称
     */
    String agencyName;

    public static AgencyResult getInstance(Boolean success,String agencyName) {
        return new AgencyResult().setAgencyName(agencyName).setSuccess(success);
    }
}
